package com.dailycodebuffer.springbootmongodb.collection;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Builder;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * (Category)实体类
 *
 * @author makejava
 * @since 2025-01-04 00:23:38
 */
@Data
@Builder
@Document(collection = "category")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Category implements Serializable {
    private static final long serialVersionUID = 973129046047602796L;

    @Id
    private Integer id;

    private String name;

    private String parentId;

    private Integer level;
}

